<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Tp5简易留言板</title>

    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
    <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container">
    <h2>留言展示 - Tp5简易留言板</h2>
    <p>留言如下：</p>
    <div>
        <table class="table table-bordered table-hover ">
            <thead>
            <tr>
                <th> ID</th>
                <th> 状态</th>
                <th> 标题</th>
                <th> 内容</th>
                <th> 留言时间</th>
            </thead>

            <tbody>
            {volist name='show' id='user'}
            <tr>
                <th> {$user.id}</th>
                <th> {$user.status}</th>
                <td><a href="{$Think.server.script_name}/index/bbs/view/id/{$user.id}">{$user.title|mb_substr=0,10,"utf-8"}</a></td>
                <td> {$user.content|mb_substr=0,20,"utf-8"}</td>
                <td> {$user.create_time}</td>
            </tr>

            {/volist}
            </tbody>
        </table>
        {$show->render()}
        <div>
        </div>
        <a href="{$Think.server.script_name}/index/bbs/add/">发布留言</a>

        <form style="display: none">
            <div class="form-group" action="" method="post">
                <!--  <label for="exampleInputName2">留言标题title:</label> -->
                <input type="text" class="form-control" id="name" placeholder="请输入留言标题">
            </div>
            <div class="form-group">
                <!--  <label for="exampleInputPassword1">留言内容content:</label> -->
                <textarea class="form-control" rows="3" id="content" placeholder="请输入留言内容"></textarea>
            </div>

            <button type="submit" class="btn btn-primary">发布留言</button>
        </form>
    </div>
</div>
</body>
</html>